package com.jie.langlangmall.portal.service;

import com.jie.langlangmall.model.UmsMember;

/**
 * @Author Jie
 * @Date 2024/11/25
 * @Email 3217998214@qq.com
 * @Description 用户缓存信息
 */
public interface UmsMemberCacheService {

    /**
     * 删除缓存
     *
     * @param memberId
     */
    void delMember(Long memberId);

    /**
     * 获取缓存
     *
     * @param username
     * @return
     */
    UmsMember getMember(String username);

    /**
     * 设置缓存
     *
     * @param member
     */
    void setMember(UmsMember member);

    /**
     * 设置验证码
     *
     * @param telephone
     * @param authCode
     */
    void setAuthCode(String telephone, String authCode);

    /**
     * 获取验证码
     *
     * @param telephone
     * @return
     */
    String getAuthCode(String telephone);

}
